package homework.Exercise2And3;

//import homework.Exercise2;

public class BoundedCounter extends Counter {
    protected int highValue;

    public BoundedCounter(int value, int highValue) {
        super(value);
        this.highValue = highValue;
    }

    public BoundedCounter() {
    }
    public BoundedCounter(int value) {
        super(value);
    }
    @Override
    public void incrementer(){
        if(super.value<highValue)super.value++;
    }

}
